*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body{
    display: grid;
    height: 100%;
    text-align: center;
    place-items: center;
    background: #664aff;
}
.range{
    height: 80px;
    width: 380px;
    background: #fff;
    padding: 0 65px 0 45px;
    border-radius: 20px;
    box-shadow: 2px 4px 18px rgba(0,0,0,0.6);
}
.slideValue{
    position: relative;
    width: 100%;
}
.slideValue span{
    position: absolute;
    height: 45px;
    width: 45px;
    transform: translateX(-70%) scale(0);
    font-weight: 500;
    top: -40px;
    line-height: 55px;
    z-index: 2;
    color: #fff;
    transform-origin: bottom;
    transition: transform 0.3s ease-in-out;
}
.slideValue span.show{
    transform: translateX(-70%) scale(1);
}
.slideValue span::after{
    position: absolute;
    content: '';
    height: 100%;
    width: 100%;
    background: #664aff;
    border: 3px solid #fff;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-bottom-left-radius: 50%;
    box-shadow: 0px 0px 18px rgba(0,0,0,0.2);
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
}
.field{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}
.field .value{
    position: absolute;
    font-size: 18px;
    color: #664aff;
    font-weight: 600;

}
.field .left{
    left: -22px;
}
.field .right{
    right: -43px;
}
.range input{
    /* -webkit-appearance: none; */
    width: 100%;
    height: 3px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    border: none;
    z-index: 999;
}

.range input::-webkit-slider-thumb{
    /* -webkit-appearance: none; */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #664aff;
    border: 1px solid #fff;
    cursor: pointer;
}